<link rel="stylesheet" type="text/css" href="/crm/quotation/css/view.css">
<script src="/crm/quotation/js/comment.js"></script>

<?php 
//$_REQUEST["id"] = "a4084668-d4c2-6d3c-5243c29873be";
require_once(dirname(__FILE__).'/quotation_view.class.php');
$data = new quotation_view($_REQUEST["id"], "simple");
$account_details = $data->getaccount_details();
$product_details = $data->getproduct_details();
$terms_conditions = $data->getterms_conditions();
$annexures = $data->getannexures();
$quotation_summary = $data->getquotation_summary();
$email = $data->getemail();
?>


<div class="view">
	<div class="innerview">
   	<p align="right"><a href="#" rel="add_comment" class="des adds">Add comments</a> <a href="#" rel="view_comment" class="des views">View comments</a><img src="/crm/quotation/images/pdf.jpg"/></p>
   	
    <?php echo $account_details;?>
    <?php echo $product_details;?>
    <?php echo $terms_conditions;?>
    <?php echo $annexures;?>
    <?php echo $quotation_summary;?>
    <?php echo $email;?>
    	
    </div>
</div>

<div class="comments">
        <div class="add_comment">   
        <form name="" action="" method="post">  
        	<p class="title">Add a Comment</p>   
            <fieldset>
                <label>Assign to: </label><input type="text" name="assign_to" value=""/><button name="select" value="">Select</button>
            </fieldset>
            <fieldset>
                <label>Comment: </label><textarea>Add your comment here</textarea>
            </fieldset> 
            <fieldset>
                <label>&nbsp;</label><button name="Comment" value="">Submit</button>
            </fieldset>   
		</form>                     
        </div> 		
	</div>    
 <div class="comments">
 	<div class="view_comment">
	    	<p class="title">Comments</p>
        	<p class="users_name">User1</p> 
        	<p>Assigned to: <span>User3</span></p>
            <p>Comment: <span>"This is a demo comment for User 3"</span></p>
            	<div class="add_comment ex a" id="btn_1_reply">     
                    <p class="title">Reply to this Comment</p> \
                  <form name="" action="" method="post">  
                    <fieldset>
                        <label>Assign to: </label><input type="text" name="assign_to" value=""/><button name="select" value="">Select</button>
                    </fieldset>
                    <fieldset>
                        <label>Comment: </label><textarea>Add your comment here</textarea>
                    </fieldset> 
                    <fieldset>
                        <label>&nbsp;</label><button name="Comment" value="" class="sub">Submit</button>
            		</fieldset>
				</form>                                
        		</div> 		
            <p><a href="#" class="reply" rel="a" id="btn_1">Reply</a></p>
	</div>              
            	<div class="reply_com">                	
                    <p class="users_name">User3</p> 
                    <p>Assigned to: <span>User1</span></p>
                    <p>Comment: <span>"This is a demo comment for User 1"</span></p>
                    <div class="add_comment ex b" id="btn_2_reply">     
        	<p class="title">Reply to this Comment</p> 
                    <form name="" action="" method="post">  
            <fieldset>
                <label>Assign to: </label><input type="text" name="assign_to" value=""/><button name="select" value="">Select</button>
            </fieldset>
            <fieldset>
                <label>Comment: </label><textarea>Add your comment here</textarea>
            </fieldset> 
            <fieldset>
                <label>&nbsp;</label><button name="Comment" value="" class="sub">Submit</button>
            </fieldset>    
            </form>     
        </div> 		
                    <p><a href="#" class="reply" rel="b" id="btn_2">Reply</a></p>
                </div>  	
    <div class="view_comment">              			
        	<p class="users_name">User2</p> 
        	<p>Assigned to: <span>User3</span></p>
            <p>Comment: <span>"This is a demo comment for User 3"</span></p>
            <div class="add_comment ex c" id="btn_3_reply">     
        	<p class="title">Reply to this Comment</p>  
                    <form name="" action="" method="post"> 
            <fieldset>
                <label>Assign to: </label><input type="text" name="assign_to" value=""/><button name="select" value="">Select</button>
            </fieldset>
            <fieldset>
                <label>Comment: </label><textarea>Add your comment here</textarea>
            </fieldset> 
            <fieldset>
                <label>&nbsp;</label><button name="Comment" value="" class="sub">Submit</button>
            </fieldset>      
            </form>      
        </div> 		
            <p><a href="#" class="reply" rel="c" id="btn_3">Reply</a></p>  
	</div>                                                      
 </div>        
                    